<?php
namespace php\widgets\editorxml;
use yii\helpers\Html;

class WebWidget extends \yii\base\Widget{
	public $value;
	public $child;
	public $that;
    public $parent_type;
    public $options;
    public function init(){
    	$class_name = basename(str_replace('\\', '/', get_class($this)));
    	$this->options = [
            'class'=>$class_name.' '.(isset($this->value['value']['class']) ? $this->value['value']['class'] : ''),
            'style'=>(isset($this->value['value']['style']) ? $this->value['value']['style'] : ''),
            'id'=>(isset($this->value['value']['class_id']) ? $this->value['value']['class_id'] : ''),
        ];
    }
}